from django.db import models

# Create your models here.

class User(models.Model):
    sno = models.CharField(max_length=10, unique=True)
    psw = models.CharField(max_length=20)
    def __str__(self):
        return self.sno

class Udetail(models.Model):
    sno = models.CharField(max_length=10, primary_key=True,default=0000000000)
    name = models.CharField(max_length=50)
    sex = models.BooleanField
    college = models.CharField(max_length=30)
    Usno = models.ForeignKey(User, to_field="sno", on_delete=models.CASCADE)

